Skip to content

Add LockSupport TaskBlock profiling instrumentation#11545

Draft
kaahos wants to merge 7 commits into
masterfrom
paul.fournillon/wallclock-locksupport-taskblock
Draft

Add LockSupport TaskBlock profiling instrumentation#11545
kaahos wants to merge 7 commits into
masterfrom
paul.fournillon/wallclock-locksupport-taskblock

Conversation

@kaahos
Copy link
Copy Markdown

@kaahos kaahos commented Jun 3, 2026

What Does This Do

Add TaskBlock profiling instrumentation for LockSupport.park/unpark, including blocker and unblocking span attribution where available.

Motivation

LockSupport.park is widely used by executors, queues, schedulers, and virtual-thread internals. Capturing these park intervals as TaskBlock events makes parked time attributable to spans and easier to separate from active execution in wall-clock profiles.

Additional Notes

Contributor Checklist

  • Format the title according to the contribution guidelines
  • Assign the type: and (comp: or inst:) labels in addition to any other useful labels
  • Avoid using close, fix, or any linking keywords when referencing an issue
    Use solves instead, and assign the PR milestone to the issue
  • Update the CODEOWNERS file on source file addition, migration, or deletion
  • Update public documentation with any new configuration flags or behaviors
  • Add your completed PR to the merge queue by commenting /merge. You can also:
    • Customize the commit message associated with the merge with /merge --commit-message "..."
    • Remove your PR from the merge queue with /merge -c
    • Skip all merge queue checks with /merge -f --reason "reason"; please use this judiciously, as some checks do not run at the PR-level
    • Get more information in this doc

Jira ticket: [PROJ-IDENT]

@datadog-official

This comment has been minimized.

@kaahos kaahos force-pushed the paul.fournillon/wallclock-locksupport-taskblock branch from 804e4ef to c3fca82 Compare June 3, 2026 12:20
@kaahos kaahos force-pushed the paul.fournillon/wallclock-locksupport-taskblock branch from c3fca82 to db17e59 Compare June 5, 2026 08:47
@kaahos kaahos force-pushed the paul.fournillon/wallclock-locksupport-taskblock branch from db17e59 to b5ead17 Compare June 5, 2026 09:32
@kaahos kaahos force-pushed the paul.fournillon/wallclock-locksupport-taskblock branch from b5ead17 to 235547a Compare June 5, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant